Repository navigation
fix: RSS channel metadata leakage / crash, and ZIP option forwarding - #2281
Duane Day (duaneday) wants to merge 3 commits into
Conversation
Signed-off-by: 4ngv4eek4k1hpa <4ngv4eek4k1hpa@users.noreply.github.com>
Signed-off-by: 4ngv4eek4k1hpa <4ngv4eek4k1hpa@users.noreply.github.com>
Signed-off-by: 4ngv4eek4k1hpa <4ngv4eek4k1hpa@users.noreply.github.com>
|
@4ngv4eek4k1hpa please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
|
Thank you for contributing these RSS/Atom and ZIP fixes and the regression tests. The feed metadata and missing-title cases are addressed by #2432, and ZIP option forwarding is addressed by #2409, both included in v0.1.8. All five regression tests proposed in this PR pass against the v0.1.8 source, including the directory-entry check. Closing this PR as superseded. Please reopen this PR if it still addresses a case that the current implementation misses, with a reproduction or a description of the remaining difference. |
Summary
getElementsByTagNameis recursive, so a feed without<title>incorrectly stole the first item/entry title (metadata leakage).md_textbefore conditionals so feeds with no titles no longer raiseUnboundLocalError(bug: RSS converter crashes with UnboundLocalError when channel title is missing #1946).# Nonewhen the feed title is missing.keep_data_uris) into nestedconvert_streamcalls, and skip directory-only zip entries.Why
Real-world RSS exports often omit channel
<title>. That used to either crash conversion or silently use an item title as the feed title. ZIP members also ignored per-call options that standalone conversion honors.Test plan
python packages/markitdown/tests/test_rss_zip_fixes.py(RSS leak/crash + ZIP keep_data_uris)test_rss.xmlvector still converts with channel title preferred